Optimal. Leaf size=91 \[ \frac {1}{4 a^2 c^2 \left (a^2 x^2+1\right )}-\frac {\tan ^{-1}(a x)^2}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac {x \tan ^{-1}(a x)}{2 a c^2 \left (a^2 x^2+1\right )}+\frac {\tan ^{-1}(a x)^2}{4 a^2 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4930, 4892, 261} \[ \frac {1}{4 a^2 c^2 \left (a^2 x^2+1\right )}-\frac {\tan ^{-1}(a x)^2}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac {x \tan ^{-1}(a x)}{2 a c^2 \left (a^2 x^2+1\right )}+\frac {\tan ^{-1}(a x)^2}{4 a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 261
Rule 4892
Rule 4930
Rubi steps
\begin {align*} \int \frac {x \tan ^{-1}(a x)^2}{\left (c+a^2 c x^2\right )^2} \, dx &=-\frac {\tan ^{-1}(a x)^2}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac {\int \frac {\tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^2} \, dx}{a}\\ &=\frac {x \tan ^{-1}(a x)}{2 a c^2 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^2}{4 a^2 c^2}-\frac {\tan ^{-1}(a x)^2}{2 a^2 c^2 \left (1+a^2 x^2\right )}-\frac {1}{2} \int \frac {x}{\left (c+a^2 c x^2\right )^2} \, dx\\ &=\frac {1}{4 a^2 c^2 \left (1+a^2 x^2\right )}+\frac {x \tan ^{-1}(a x)}{2 a c^2 \left (1+a^2 x^2\right )}+\frac {\tan ^{-1}(a x)^2}{4 a^2 c^2}-\frac {\tan ^{-1}(a x)^2}{2 a^2 c^2 \left (1+a^2 x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 47, normalized size = 0.52 \[ \frac {\left (a^2 x^2-1\right ) \tan ^{-1}(a x)^2+2 a x \tan ^{-1}(a x)+1}{4 a^2 c^2 \left (a^2 x^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.58, size = 48, normalized size = 0.53 \[ \frac {2 \, a x \arctan \left (a x\right ) + {\left (a^{2} x^{2} - 1\right )} \arctan \left (a x\right )^{2} + 1}{4 \, {\left (a^{4} c^{2} x^{2} + a^{2} c^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 84, normalized size = 0.92 \[ \frac {1}{4 a^{2} c^{2} \left (a^{2} x^{2}+1\right )}+\frac {x \arctan \left (a x \right )}{2 a \,c^{2} \left (a^{2} x^{2}+1\right )}+\frac {\arctan \left (a x \right )^{2}}{4 a^{2} c^{2}}-\frac {\arctan \left (a x \right )^{2}}{2 a^{2} c^{2} \left (a^{2} x^{2}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 104, normalized size = 1.14 \[ \frac {{\left (\frac {x}{a^{2} c x^{2} + c} + \frac {\arctan \left (a x\right )}{a c}\right )} \arctan \left (a x\right )}{2 \, a c} - \frac {{\left (a^{2} x^{2} + 1\right )} \arctan \left (a x\right )^{2} - 1}{4 \, {\left (a^{4} c x^{2} + a^{2} c\right )} c} - \frac {\arctan \left (a x\right )^{2}}{2 \, {\left (a^{2} c x^{2} + c\right )} a^{2} c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.42, size = 50, normalized size = 0.55 \[ \frac {a^2\,x^2\,{\mathrm {atan}\left (a\,x\right )}^2+2\,a\,x\,\mathrm {atan}\left (a\,x\right )-{\mathrm {atan}\left (a\,x\right )}^2+1}{4\,a^2\,c^2\,\left (a^2\,x^2+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {x \operatorname {atan}^{2}{\left (a x \right )}}{a^{4} x^{4} + 2 a^{2} x^{2} + 1}\, dx}{c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________